SET PATH=%PATH%;%WINDOWS%\Microsoft.NET\Framework\v3.5

RMDIR /S /Q _package
MKDIR _package 
MSBUILD /p:Configuration=Release /t:Clean;Rebuild;Clean /v:Minimal /p:OutputPath="%CD%\_package"

DEL /S /Q _package\*.pdb
DEL _package\Microsoft.SharePoint.Search.*